cmake_minimum_required(VERSION 2.8.12)

project(longpoll_sdk LANGUAGES C CXX)


add_library(longpoll_sdk SHARED
    longpoll_sdk.cpp
    longpoll_api.cpp
)

add_executable( longpoll_sdk_test
    main.cpp
)


target_link_libraries(longpoll_sdk_test PRIVATE longpoll_sdk)
target_link_libraries(longpoll_sdk PUBLIC uhp_util )

install(TARGETS longpoll_sdk DESTINATION lib)
install(TARGETS longpoll_sdk_test DESTINATION bin)
